<template>
    <div class="drawerContainer">
        <el-form :model="propJson" label-width="auto" style="width: 100%">
            <el-form-item label="图片地址">
                <el-input v-model="propJson.imageUrl" style="width: 100%"/>
            </el-form-item>

            <el-form-item label="图片填充方式">
                <el-select v-model="propJson.imageFit" placeholder="图片填充方式" style="width: 100%">
                    <el-option label="自动填充" value="fill" />
                    <el-option label="自适应" value="contain" />
                    <el-option label="自放大" value="cover" />
                    <el-option label="自缩小" value="scale-down" />
                    <el-option label="无操作" value="none" />
                </el-select>
            </el-form-item>

            <el-form-item label="图片宽度">
                <el-input v-model="propJson.imageWidth" style="width: 100%"/>
            </el-form-item>

            <el-form-item label="图片高度">
                <el-input v-model="propJson.imageHeight" style="width: 100%"/>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
export default {
    name: "ImageDrawer",
    props: ['commonParam'],
    computed: {
        propJson() {
            return this.$store.state.lowCodeDrawerJsonInfo;
        }
    },
}
</script>

<style scoped lang="less">

</style>